package com.karrim.server.model;

import com.karrim.server.annotation.Annotation.DatanucleusProperties;
import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

/**
 *
 * @author andrea.cantafio
 */
public class PMF {

    public PMF(@DatanucleusProperties String name) {
        factory = JDOHelper.getPersistenceManagerFactory(name);
    }
    
    public PersistenceManagerFactory getPersistenceManagerFactory() {
        return factory;
    }
    
    private PersistenceManagerFactory factory;
}
